const mutations = {
  // 2022/4/15 zc新增 设置NFC开关状态
  setIcReadDriveOpen(state, info) {
    state.icReadDriveOpen = info;
  },
  setAttConnectNum(state, num) {
    //验签连接次数改变
    state.attConnectNum = num;
  },
  setScreenConfig(state, obj) {
    //zk0604新增,同屏页面的一些配置
    for (let key in obj) {
      state[key] = obj[key];
    }
  },
  setTimeoutObj(state, { id, time }) {
    //zk0429新增
    state.timeoutObj[id] = time;
  },
  Group_Check(state, payload) {
    state.groupCheck = payload;
  },
  Internet_Err(state, payload) {
    state.internetErr = payload;
  },
  Update_User_Status(state, payload) {
    state.updateUserStatus = payload;
  },
  Sync_User_Status(state, payload) {
    state.syncUserStatus = payload;
  },
  Anchor_Position(state, payload) {
    state.anchorPosition = payload;
  },
  Anchor_Position_Organization(state, payload) {
    state.anchorPosition_organization = payload;
  },
  Updated_User_Status(state, payload) {
    state.updatedUserStatus = payload;
  },
  Is_MacAddress_Common(state, payload) {
    state.isMacAddressCommon = payload;
  },
  Is_Update_SessionList(state, payload) {
    state.isUpdateSessionList = payload;
  },
  Is_Article_Id(state, payload) {
    state.isArticleId = payload;
  },
  set_user_hot_key(state, payload) {
    state.user_hot_key = payload;
  },
  set_soketConnect(state, payload) {
    state.soketConnect = payload;
  },
  set_user_configure(state, payload) {
    state.user_configure = payload;
  },
  setWs(state) {
    state.ws = new WebSocket(state.socket);
  },
  setUserInfo(state, info) {
    state.myInfo = info;
  },
  setHeadPathUrl(state, info) {
    state.headPathUrl = info;
  },
  setBroadType(state, info) {
    state.broadType = info;
  },
  setToInfo(state, info) {
    state.toInfo = info;
  },
  setToken(state, info) {
    state.token = info;
  },
  setTokenOff(state, info) {
    state.token_official = info;
  },
  setInitQCode(state, info) {
    state.initQCode = info;
    state.initStatus = false;
  },
  //收到发送状态 区分head.resultCode
  receiveMessage(state, info) {
    state.receiveInfo = info;
  },
  //收到发送状态 区分head.resultCode
  setSendResult(state, info) {
    // console.log(info, 'infoinfoinfo收到发送状态')
    state.sendInfo = info;
  },
  setChating(state, info) {
    state.chating = info;
    // console.log(state.chating, "修改后")
  },
  setb4Leave(state, info) {
    state.b4Leave = info;
    // console.log(state.b4Leave, "修改后")
  },
  setDefaultRemote(state, info) {
    //zk129新增，修改默认远程人员名单（组）
    state.defaultRemoteArr = [...info];
    // console.log(state.defaultRemoteArr, "修改后")
  },
  setRemoteMembers(state, info) {
    //zk129新增，修改默认远程人员名单(人)
    state.remoteMembers = [...info];
    // console.log(state.remoteMembers, "修改后")
  },
  setAuthMembers(state, info) {
    //zk129新增，修改授权人员名单(人)
    state.authMembers = [...info];
    // console.log(state.authMembers, "修改后")
  },
  setScreenshotFilter(state, info) {
    state.screenshotFilter = info;
  },
  setUndoList(state, info) {
    state.toUndoList = info;
  },
  updatedNowMsgUserState(state, info) {
    //更新当前发送信息用户状态
    let data = Object.assign({}, state.nowMsgUserState, info);
    state.nowMsgUserState = data;
  },
  setOvertimeMsgKey(state, info) {
    console.log(info, 124);
    state.overtimeMsgKey = info;
  },
  setToReply(state, info) {
    state.toReply = info;
  },
  setToReplyTemp(state, info) {
    state.toReplyTemp = info;
  },
  setLoginInfo(state, info) {
    state.loginInfo = info;
  },
  setsearchListArr(state, info) {
    state.search_list_array = info;
  },
  setoldsearchval(state, info) {
    state.oldsearchval = info;
  },
  setsearchValue(state, info) {
    state.searchValue = info;
  },
  setDefultPath(state, info) {
    state.defultPath = info;
  },
  changeService(state) {
    state.isService = !state.isService;
  },
  setChatChooseFileWait(state, info) {
    state.chatChooseFileWait = info
  },
  setDashboardSearchTypes(state, info) {
    state.dashboard.searchTypes = info
  },
  setDashboardSearchText(state, info) {
    state.dashboard.searchText = info
  },
  setSearchResultSearchText(state, info) {
    state.searchResult.searchText = info
  },
  setSearchResultSearchType(state, info) {
    state.searchResult.searchType = info
  },
  setSearchResultMode(state, info) {
    state.searchResult.mode = info
  },
  setMyPendingMode(state, info) {
    state.myPending.mode = info
  },
  setFrequentlyUsedAppList(state, info) {
    state.dashboard.frequentlyUsedAppList = info
  },
  setPartitionList(state, info) {
    state.dashboard.partitionList = info
  },
};

export default mutations;
